<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <link rel="stylesheet" href="css/index.css" />
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <script src="https://cdn.bootcss.com/vue/2.6.11/vue.min.js"></script> 
  <script src="https://unpkg.com/element-ui/lib/index.js"></script> 
</head>

<body>
  <header>
    <h1 class="title">IO Controller | WAN</h1>
    <div class="showTime panel"></div>
    <script src="./js/moment.js"></script>
    <script src="./js/momentzh.js"></script>

    <script>
      var t = null;
      t = setTimeout(time, 1000); //開始运行
      function time() {
        clearTimeout(t); //清除定时器var dd= new Date();
        let day = moment().subtract('days',7).format('YYYY/MM/DD HH:mm:ss ')
        let d = publicWeekDate(day)
        document.querySelector(".showTime").innerHTML = day + d 
        t = setTimeout(time, 1000); //设定定时器，循环运行
      }
    </script>
  </header>
  <section class="mainbox">
    <div class="column">
      <div class="panel bar">
        <h2>全网设备统计</h2>
        <div class="chart"></div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel line">
        <h2>折线图-人员变化</h2>
        <div class="chart"></div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel pie">
        <h2>24小时内线路调度分布图</h2>
        <div class="chart"></div>
        <div class="panel-footer"></div>
      </div>
    </div>
    <div class="column" id="app">
      <div class="no" >
        <div class="no-hd ">
          <ul v-for="(item,index) in items"  @click="tab(index)" class="no-ulhd" :class="{active : index===curId}">
            <li  :class="{active : index===curId}">{{item}}</li>
          </ul>     
        </div>
        <el-dropdown>
          <el-button type="primary" :style="selfstyle">
            机构<i class="el-icon-arrow-down el-icon-caret-bottom"></i>
          </el-button>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>前端实习</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
      
      <div class="map">
        <div class="chart"></div>
        <div class="map1"></div>
        <div class="map2"></div>
        <div class="map3"></div>
      </div>
    </div>
    <div class="column">
      <div class="panel bar1">
        <h2>未处理的告警</h2>
        <div class="chart"></div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel line1">
        <h2>24小时内的应用流量top5</h2>
        <div class="chart"></div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel pie1">
        <h2>最新站点健康评分统计</h2>
        <div class="chart"></div>
        <div class="panel-footer"></div>
      </div>
    </div>
  </section>
  <script>
    const app = new Vue({
      el: '#app',
      data() {
        return {
          curId: 0,
          items: ['全网设备','全网拓扑'],
          selfstyle: {
            cursor: "pointer",
            color: "#E7EBEE",
            background: "#202A36",
            border:"white",
            textAlign: "left",
            width:"2rem"
            }
          }
      },
      methods: {
        tab(index) {
          console.log(index);
          this.curId = index;
        }
      }
    })
  </script>
  <script src="js/flexible.js"></script>
  <script src="js/jquery.js"></script>
  <script src="js/echarts.min.js"></script>
  <script src="js/index.js"></script>
  <script src="js/china.js"></script>
  <script src="js/myMap.js"></script>
</body>
</html>